package edu.wong.apis;

import edu.wong.resp.ResultData;
import edu.wong.resp.ReturnCodeEnum;
import org.aspectj.apache.bcel.generic.ReturnaddressType;
import org.springframework.stereotype.Component;

@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi{
    @Override
    public ResultData getPayByOrderNo(String orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(), "对方服务宕机或不可用，FallBack服务器降级");
    }
}
